package com.ease.archiecture.entity;

import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;

/**
 * @author wei.jiang
 * @since 19-9-17 下午1:10
 */
@Entity
@Table(name = "p_user")
@GenericGenerator(name = "jpa-uuid", strategy = "uuid")
@Getter
@Setter
@NoArgsConstructor
public class User implements Serializable {

    private static final long serialVersionUID = 4542329299060369564L;
    @Id
    @GeneratedValue(generator = "jpa-uuid")
    private String id;

    @Column(name = "user_name")
    private String userName;

    private String password;

    private String mobile;

    private String email;
}
